package com.keiou.drink.ui.activity;

import android.content.Context;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.keiou.drink.R;

import com.keiou.drink.util.PrefsHelper;
import com.keiou.drink.util.TLog;
import com.keiou.drink.util.UIUtil;

import java.util.Locale;

public class SplashActivity extends AppCompatActivity {

    private View root;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);

        root = findViewById(R.id.root);
      //  Bugly.init(getApplicationContext(), "2ea8cf64f6", true);



        findViewById(R.id.root).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
              //  updateViews("en");
                UIUtil.redirectTo(SplashActivity.this, MainActivity.class);
            }
        });


        String lan = Locale.getDefault().getLanguage();
        TLog.d("local:" + lan);


    }



//    @Override
//    protected void attachBaseContext(Context newBase) {
////        super.attachBaseContext(LanguageContextWrapper.wrap(newBase, LanguageUtil.getLanguage(AppContext.getInstance())));
//        super.attachBaseContext(LanguageContextWrapper.wrap(newBase, "en"));
//    }




}
